﻿@model TimeTracker.Models.EntryModel

<div class="entry" id="@Model.Id">
    <div class="editButton">
        @Html.HiddenFor(model => model.UserId)
        @Html.HiddenFor(model => model.ProjectId)
        @Html.HiddenFor(model => model.ClientId)

        <div class="description">@Html.DisplayFor(model => model.Description)</div>
        <div class="elapsed">@Html.DisplayFor(model => model.TotalElapsed)</div>
        <div class="client">@Html.DisplayFor(model => model.Client)</div>
        <div class="project">@Html.DisplayFor(model => model.Project)</div>
    </div>

    <div class="buttons">
        @if (Model.IsActive)
        {
            <a href="#nowhere" class="stopButton"><img src="@Url.Content("~/Content/Images/task_pause.png")" border="0" /></a> 
        }
        else
        {
            <a href="#nowhere" class="continueButton"><img src="@Url.Content("~/Content/Images/task_continue.png")" border="0" /></a>
        }
    </div>
</div>